import axios from '@/libs/request/axios'
export const listParamInfo = (data) => {
    return axios.request({
        url: '/admin/sysparam/page',
        data:data,
        method: 'post'
    })
}

export const modify = (data) => {
    return axios.request({
        url: '/admin/sysparam/save',
        data:data,
        method: 'post'
    })
}

export const delParam = (id) => {
    return axios.request({
        url: `/admin/sysparam/delete/${id}`,
        method: 'delete'
    })
}

export const listPassRule = () => {
    return axios.request({
        url: '/admin/sysparam/getPassRule',
        method: 'get'
    })
}


export const publishParams = () => {
    return axios.request({
        url: '/admin/sysparam/syncParams',
        method: 'get'
    })
}
